<?php
/**
 * CakePOWER
 * DAC Initialization
 * 
 * @author:			Marco Pegoraro
 * @mail:			marco(dot)pegoraro(at)gmail(dot)com
 * 
 * 29 September 2009
 * This file stets up DAC keys to be used later.
 * 
 */

// Fresh initialization of DAC.                                                                   #
DAC::write('',array(
	
	// Application level space.                                                                   #
	// Informations under this key may be defined at runtime.                                     #
	'app' 	=> array(),
	
	// Request informations.                                                                      #
	'request' => array(
		
		'mode'		=> '',
		
		// It will contain request based informations like controller, action, etc.
		'params'	=> array(),
		
		// It will be filled up with request based variations of "app" configuration.             #
		// These info will be availabel through DAC::app() read only method.                      #
		'app'		=> array(),
		
	),
	
	// System Configuration Level.                                                                #
	// Informations under this level are hard coded into files and could be cached.               #
	'sys'	=> array(
		
		// Requested Lang Flag.                                                                   #
		'lang' => DAC::read('sys.lang'),
		
		// Plugins list container.                                                                #
		// Here will be listed all plugins configured for the application.                        #
		'plugin' => DAC::read('sys.plugin'),
		
		// Search Paths Repositories.                                                             #
		// Extends theese keys to extend CakePHP's search paths for any type of element.          #
		'repositories' => array(
			'views'			=> DAC::read('power.repositories.views'),
			'helpers'		=> DAC::read('power.repositories.helpers'),
			'controllers'	=> DAC::read('power.repositories.controllers'),
			'components'	=> DAC::read('power.repositories.components'),
			'models'		=> DAC::read('power.repositories.models'),
			'behaviors'		=> DAC::read('power.repositories.behaviors'),
			'plugins'		=> DAC::read('power.plugins.repositories'),
			'vendors'		=> DAC::read('power.repositories.vendors'),
		),
	
	),
	
	// This value teach bootstrap if DAC has been initialized from cache.                         #
	// Cache is written at the end of hard coded configuration and checked at the top of this file#
	'cached' => false,
	
	// Hard configuration of CakePOWER.                                                           #
	'power'		=> DAC::read('power'),
	
));

?>